<template>
  <van-tabbar route active-color="#ff5f16">
    <van-tabbar-item icon="wap-home-o" to="/home">首页</van-tabbar-item>
    <van-tabbar-item icon="photo-o" to="/cinema">
      <span>列表</span>
      <template #icon="props">
        <i
          class="iconfont"
          :class="{
            'icon-yingyuan': !props.active,
            'icon-yingyuan-active': props.active
          }"
        ></i>
      </template>
    </van-tabbar-item>
    <van-tabbar-item icon="comment-o" to="/news">详情</van-tabbar-item>
    <van-tabbar-item icon="friends-o" to="/center">个人</van-tabbar-item>
  </van-tabbar>
</template>

<script setup>
import { ref } from 'vue'

const active = ref(0)
</script>

<style lang="scss" scoped></style>
